//-----------------------------------------------------------------------
// <copyright file="a_CountryService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_CountryService
    {
        #region a_Country

        public static void Createa_Country(a_Country a_Country)
        {            
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                a_CountryDAO.Createa_Country(a_Country);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Country(a_Country a_Country)
        {            
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                a_CountryDAO.Updatea_Country(a_Country);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Country(int countryID)
        {            
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                a_CountryDAO.Deletea_Country(countryID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Country Geta_Country(int countryID)
        {            
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                return a_CountryDAO.Geta_Country(countryID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_CountryCollection Geta_CountryList(a_CountryColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                return a_CountryDAO.Geta_CountryList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_CountryCollection Geta_CountryList(a_CountryColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                return a_CountryDAO.Geta_CountryList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }


        public static a_CountryCollection Geta_CountryList_alphabet(string mychar, a_CountryColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                return a_CountryDAO.Geta_CountryList_alphabet(mychar, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_CountryCollection Geta_CountryList_alphabet(string mychar, a_CountryColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_CountryDAO a_CountryDAO = new a_CountryDAO();
                return a_CountryDAO.Geta_CountryList_alphabet(mychar, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        #endregion
    }
}